package com.demo.service.serviceImpl;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.demo.entity.User;
import com.demo.mapper.UserDao;
import com.demo.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author: fanfan
 * @date: 2018/5/11 16:43
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserDao,User> implements UserService{

    @Override
    public User findUserByUsername(String username) {
        Wrapper<User> con=new Condition();
        con.eq("username",username);
        return selectOne(con);
    }
}
